package com.dianping.cat.consumer.cross.model.entity;

import com.dianping.cat.consumer.cross.model.BaseEntity;
import com.dianping.cat.consumer.cross.model.IVisitor;








public class Remote
  extends BaseEntity<Remote>
{
  private String m_id;
  private String m_role;
  private Type m_type;
  private String m_app;
  private String m_ip;

  public Remote() {}

  public Remote(String id) { this.m_id = id; }




  public void accept(IVisitor visitor) { visitor.visitRemote(this); }



  public boolean equals(Object obj) {
/*  34 */     if (obj instanceof Remote) {
/*  35 */       Remote _o = (Remote)obj;

/*  37 */       if (!equals(getId(), _o.getId())) {
/*  38 */         return false;
      }

/*  41 */       return true;
    }

/*  44 */     return false;
  }


/*  48 */   public String getApp() { return this.m_app; }



/*  52 */   public String getId() { return this.m_id; }



/*  56 */   public String getIp() { return this.m_ip; }



/*  60 */   public String getRole() { return this.m_role; }



/*  64 */   public Type getType() { return this.m_type; }





  public void mergeAttributes(Remote other) {
    assertAttributeEquals(other, "remote", "id", this.m_id, other.getId());

/*  80 */     if (other.getRole() != null) {
/*  81 */       this.m_role = other.getRole();
    }

/*  84 */     if (other.getApp() != null) {
/*  85 */       this.m_app = other.getApp();
    }

/*  88 */     if (other.getIp() != null) {
/*  89 */       this.m_ip = other.getIp();
    }
  }

  public Remote setApp(String app) {
/*  94 */     this.m_app = app;
/*  95 */     return this;
  }

  public Remote setId(String id) {
/*  99 */     this.m_id = id;
/* 100 */     return this;
  }

  public Remote setIp(String ip) {
/* 104 */     this.m_ip = ip;
/* 105 */     return this;
  }

  public Remote setRole(String role) {
/* 109 */     this.m_role = role;
/* 110 */     return this;
  }

  public Remote setType(Type type) {
/* 114 */     this.m_type = type;
/* 115 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/cross/model/entity/Remote.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */